package ee.serge.client.content;

import ee.serge.client.Move;
import ee.serge.util.Calculator;
import ee.serge.util.Content;
import ee.serge.util.URLData;

public class CalculatorContent extends Content {

   private static final String NAME = "calculator";
   public static LoansRequester loansRequester;
   
   public static String getName() {
      return NAME;
   }
   public static URLData getURLData() {
      URLData data = new URLData();
      data.setName(NAME);
      return data;
   }

   public static void show() {
      Move.get().setContent(new CalculatorContent());
   }
   
   public CalculatorContent() {
      setHeader("Loan calculator", "The best offers for your needs");
      buildForm();
   }
   
   private void buildForm() {
      add(new Calculator(true));
   }

}
